package com.vfa.data;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateManipulation {

	public static Date StringToDate(String date) {
		Date mydate = null;
		DateFormat formatter;
		formatter = new SimpleDateFormat("yyyy-MM-dd");
		try {
			mydate = (formatter.parse(date));
		} catch (ParseException e) {
			mydate = null;
		}
		return mydate;
	}
}